const path = require('path');
const { outputPath } = require('../utils/paths');
const { pathAliasReplace } = require('path-alias-replace');

pathAliasReplace({
	sweepPath: outputPath,
	alias: {
		'@e': outputPath,
	},
	watch: true,
	watchOpitons: {
		rafter: 'npx electron ' + path.join(outputPath, 'main.js'),
		rafterEnv: {
			NODE_ENV: 'development',
		},
	},
});
